import request from '@/utils/request'

// 仓库列表
export function adminLists(params: any) {
    return request.get({ url: '/warehouse.warehouse/lists', params })
}
// 获取所有仓库列
export function adminlistColumn(params: any) {
    return request.get({ url: '/warehouse.warehouse/listColumn', params })
}
// 获取当前用户绑定仓库
export function adminUserBind(params: any) {
    return request.get({ url: '/warehouse.Warehouse/userBind', params })
}
// 获取当前用户绑定仓库s
export function adminUserBinds(params: any) {
    return request.get({ url: '/warehouse.Warehouse/userBind', params })
}
// 仓库添加
export function adminAdd(params: any) {
    return request.post({ url: '/warehouse.warehouse/add', params })
}
// 仓库编辑
export function adminEdit(params: any) {
    return request.post({ url: '/warehouse.warehouse/edit', params })
}

// 仓库删除
export function adminDelete(params: any) {
    return request.post({ url: '/warehouse.warehouse/delete', params })
}
// 权限配置列表
export function adminjurisdictionLists(params: any) {
    return request.get({ url: '/auth.PermissionsConfig/lists', params })
}
// 获取权限配置
export function adminjurisdictiongetPermissions(params: any) {
    return request.get({ url: '/auth.PermissionsConfig/getPermissions', params })
}
// 添加权限配置
export function adminjurisdictionadd(params: any) {
    return request.post({ url: '/auth.PermissionsConfig/add', params })
}
// 修改权限配置
export function adminjurisdictionedit(params: any) {
    return request.post({ url: '/auth.PermissionsConfig/edit', params })
}
// 删除权限配置
export function adminjurisdictiondelete(params: any) {
    return request.post({ url: '/auth.PermissionsConfig/delete', params })
}